<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html>
<head>
	<%@ include file="/views/common/meta_info.htm"%>
	<%@ include file="/views/common/common_back_css.htm"%>
	<link rel="stylesheet" type="text/css" href="/css/back/back.css" title="v"/>
</head>
<body style="min-width:1000px;">
    <!-- 查询条件  开始 -->
   	<table id="mainQueryTable">
		<tbody>
			<tr class="tr_ht" align="right">
				<td class="td_pad"><span>论坛：</span><input role="combobox" id="sc_forumId" class="domain-input easyui-combobox width100" /></td>
				<td class="td_pad"><span>帖子名：</span><input role="textbox" id="sc_title" class="domain-input easyui-textbox width100" /></td>
				<td class="td_pad"><span>作者：</span><input role="textbox" id="sc_createdBy" class="domain-input easyui-textbox width100" /></td>
				<td class="td_pad"><span>排序：</span><input role="combobox" id="sc_ascOrdesc" class="domain-input easyui-combobox width100" /></td>
								<td class="td_pad"><span>类型：</span><input role="combobox" id="sc_typeCode" class="domain-input easyui-combobox width100" /></td>
				<td class="td_pad"><button id="searchYes" onclick="doSearch();return false;" class="button button-primary button-rounded button-small">查 询</button></td>
			</tr>
			<tr class="tr_ht" align="right">
				<td class="td_pad"><span>精华：</span><input role="combobox" id="sc_isEssence" class="domain-input easyui-combobox width100" /></td>
				<td class="td_pad"><span>置顶：</span><input role="combobox" id="sc_isTop" class="domain-input easyui-combobox width100" /></td>
				<td class="td_pad"><span>热门：</span><input role="combobox" id="sc_isHot" class="domain-input easyui-combobox width100" /></td>
				<td class="td_pad"><span>推荐：</span><input role="combobox" id="sc_isRecommend" class="domain-input easyui-combobox width100" /></td>
				<td class="td_pad"><span>状态：</span><input role="combobox" id="sc_mainStatus" class="domain-input easyui-combobox width100" /></td>
				<!-- <td class="td_pad"></td> -->
				<td class="td_pad"><button id="searchClear" onclick="clearSearch();return false;" class="button button-primary button-rounded button-small">重 置</button></td>
			</tr>
		</tbody>
	</table>
	<div class="clear-both height10"></div>
	<!-- 查询条件 结束 -->
	<div id="opt_outer_div">
		<div class="fl_opt_div">
			<button role="opt_1" id="btn_batchDelete" onclick="lh.commonBatchDelete()"  class="button button-primary button-rounded button-small">批量删除</button>
			<button role="opt_1" onclick="addMainObj()" class="button button-primary button-rounded button-small">添加</button>
		<!--	<button  onclick="resetPassword()" class="button button-primary button-rounded button-small">重置密码</button> -->
		<!-- 	<button  onclick="exportUser()" class="button button-primary button-rounded button-small">导出用户信息</button> -->
			<button role="opt_2" id="btn_batchRecover" onclick="lh.commonBatchRecover()" class="hide button button-primary button-rounded button-small">批量恢复</button>
			<button role="opt_2" id="btn_throughDelete" onclick="lh.commonBatchThoroughDelete()" class="hide button button-primary button-rounded button-small">彻底删除</button>
			
		</div>
		<div class="fr_opt_div">
			<button role="opt_1" id="btn_trash" onclick="lh.commonShowTrash()" class="button button-primary button-rounded button-small">回收站</button>
			<button role="opt_2" id="btn_trashBack" onclick="lh.commonReturnBack()" class="hide button button-primary button-rounded button-small">返回</button>
		</div>
	</div>
	<!-- 表格  开始 -->
	<div id='datagrid_div'>
		<table id="datagrid"></table>
	</div>
	<!-- 表格  结束 -->
    
    <div id="mainObjWindiv" style="display:none;">
	     <div id='mainObjWin' class="easyui-window" title="帖子信息" style="width: 740px;" data-options="modal:true,closed:true,maximizable:false,collapsible:false,minimizable:false">
			<div id="mainObjTip"></div>
	         <form id="mainObjForm"><br/>
	       		 <table id="mainObjTable" class="padL5">
					<tbody>
						<tr class="tr_ht" align="right">
						
						
						
							<td class="td_pad"><span><span style="color:red;font-weight:bolder;">*</span>论坛名：</span><input role="combobox" id="f_forumId" class="domain-input easyui-combobox width140" data-options="required:true"/></td>
							<td class="td_pad"><span><span style="color:red;font-weight:bolder;">*</span>帖子标题：</span><input role="textbox" id="f_title" class="domain-input easyui-textbox width140" data-options="required:true"/></td>
							<td class="td_pad"><span>副标题：</span><input role="textbox" id="f_subTitle" class="domain-input easyui-textbox width140"/></td>
						</tr>
						<tr class="tr_ht" align="right">
							<td class="td_pad"><span><span style="color:red;font-weight:bolder;"></span>描述：</span><input role="textbox" id="f_description" class="domain-input easyui-textbox width140" /></td>
							<td class="td_pad"><span><span style="color:red;font-weight:bolder;">*</span>状态：</span><input role="combobox" id="f_mainStatus" class="domain-input easyui-combobox width140" data-options="required:true"/></td>
							<td class="td_pad"><span><span style="color:red;font-weight:bolder;">*</span>帖子类型：</span><input role="combobox" id="f_typeCode" class="domain-input easyui-combobox width140"
							data-options="valueField:'id',textField:'name',editable:false,multiple:false,required:true,panelHeight:'auto',data:[{'id':'huati','name':'话题'},{'id':'shaihaowu','name':'晒好物'},{'id':'','name':''}]"/>
							</td>
						</tr>
						<tr class="tr_ht" align="right">
							<td class="td_pad"><span>备注：</span><input role="textbox" id="f_remark" class="domain-input easyui-textbox width140" data-options="required:false"/></td>
							<td class="td_pad"><span><span style="color:red;font-weight:bolder;"></span>查看次数：</span><input role="textbox" id="f_visitNum" class="domain-input easyui-textbox width140" /></td>
							<td class="td_pad"><span><span style="color:red;font-weight:bolder;">*</span>是否精华：</span><input role="combobox" id="f_isEssence" class="domain-input easyui-combobox width140"
							data-options="valueField:'id',textField:'name',editable:false,multiple:false,required:true,panelHeight:'auto',data:[{'id':1,'name':'否'},{'id':2,'name':'是'}]"/>
							</td>
						</tr>
						<tr class="tr_ht" align="right">
						<td class="td_pad"><span><span style="color:red;font-weight:bolder;">*</span>是否置顶：</span><input role="combobox" id="f_isTop" class="domain-input easyui-combobox width140"
							data-options="valueField:'id',textField:'name',editable:false,multiple:false,required:true,panelHeight:'auto',data:[{'id':1,'name':'否'},{'id':2,'name':'是'}]"/>
							</td>
						<td class="td_pad"><span><span style="color:red;font-weight:bolder;">*</span>是否热门：</span><input role="combobox" id="f_isHot" class="domain-input easyui-combobox width140"
							data-options="valueField:'id',textField:'name',editable:false,multiple:false,required:true,panelHeight:'auto',data:[{'id':1,'name':'否'},{'id':2,'name':'是'}]"/>
							</td>
						<td class="td_pad"><span><span style="color:red;font-weight:bolder;">*</span>是否推荐：</span><input role="combobox" id="f_isRecommend" class="domain-input easyui-combobox width140"
							data-options="valueField:'id',textField:'name',editable:false,multiple:false,required:true,panelHeight:'auto',data:[{'id':1,'name':'否'},{'id':2,'name':'是'}]"/>
							</td>
						</tr>
						<tr class="tr_ht" align="right">
							<td colspan="3" class="td_pad"><span><span style="color:red;font-weight:bolder;">*</span>帖子内容：</span><input role="textbox" style="height:100px;width:580px;" id="f_content" class="domain-input easyui-textbox" data-options="multiline:true,required:true"/></td>
						   <!-- 
						   <td class="td_pad"><span><span style="color:red;font-weight:bolder;"></span>作者名：</span><input role="combobox" id="f_username" class="domain-input easyui-combobox width140" /></td>
						   <td class="td_pad"><span><span style="color:red;font-weight:bolder;">*</span>内容：</span><input role="textbox" id="f_content" class="domain-input easyui-textbox width140" data-options="required:true"/></td>
						    -->
						</tr>
					</tbody>
				 </table>
			 </form>  
			 <span>图&nbsp;&nbsp;片：</span>
			 <button id="browse" type="button" class="button button-primary button-rounded button-small" >选择图片</button>
			 <span>(建议图片长宽均为120像素)</span>
			 <div style="display:inline-block;float:left;">
				 <img  id="pic" class="picurl"  src="${pic.picPath}" style="height:60px;max-width:100px;overflow:hidden;padding:5px;"/>
				 <input type="hidden" name="filePaths" id="filePaths" value="${pic.picPath}"/>
				 <input type="hidden" name="fileDBIds" id="fileDBIds"/>
			 </div>
			 <div id="upload_outer_div" style="margin-top:30px;"><!-- 上传文件进度展示 --></div>
			<div class="inline-center mgV40">
			     <button id="mainObjSave" onclick="saveMainObj()" class="button button-primary button-rounded button-small">保存</button>
			     <button id="mainObjBack" onclick="closeMainObjWin()" class="button button-primary button-rounded button-small">返回</button>
			 </div>
	     </div>
    </div>
    <!-- 
     <div id="resetPasswordWindiv" style="display:none;">
	     <div id='resetPasswordWin' class="easyui-window" title="重置密码" style="width: 635px;" data-options="modal:true,closed:true,maximizable:false,collapsible:false,minimizable:false">
			<div id="resetPasswordTip"></div>
	         <form id="resetPasswordForm"><br/>
	       		 <table id="resetPasswordTable" class="padL5">
					<tbody>
						<tr class="tr_ht" align="right">
							<td class="td_pad"><span>密码：</span><input role="textbox" type="password" id="password" class="domain-input easyui-textbox width100" data-options="required:true"/></td>
						</tr>
					</tbody>
				 </table>
			 </form>  
			<div class="inline-center mgV40">
			     <button id="mainObjSave" onclick="saveResetPassword()" class="button button-primary button-rounded button-small">保存</button>
			     <button id="mainObjBack" onclick="closeResetPasswordWin()" class="button button-primary button-rounded button-small">返回</button>
			 </div>
	     </div>
    </div>
     -->
    <%@ include file="/views/common/common_js.htm"%>
	<%@ include file="/views/common/common_back_js.htm"%>
	<%@ include file="/views/common/common_upload_js.htm"%>
	<script type="text/javascript">
  		lh.paramJsonStr = '${paramJson}';
  	</script>
<script type="text/javascript" src="/js/common/back_template.js" title="v"></script>
  	
	<script type="text/javascript" src="/js/back/base/forum/forumArticle.js" title="v"></script>
</body>
</html>